﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Wicresoft.SMS.Web.App_GlobalResources;
namespace Wicresoft.SMS.Web
{
    [AuthoriseImplement(typeof(OnlyCheckEnableImpIAuthorise))]
    public class AccountLogInModel : BaseModelWithAuthorise
    {
        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.label)]
        [Display(Name="login_label_username" , ResourceType=typeof(Resources))]
        public string LabelUserName { get; set; }

        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.text)]
        public string InputUserName { get; set; }

        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.label)]
        [Display(Name = "login_label_password", ResourceType = typeof(Resources))]
        public string LabelPassword { get; set; }

        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.password)]
        public string InputPassword { get; set; }
        
        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.checkbox)]
        [Display(Name = "login_checkbox_remember", ResourceType = typeof(Resources))]
        public bool CheckRemember { get; set; }

        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.submit)]
        [Display(Name = "login_submit_login", ResourceType = typeof(Resources))]
        public string SubmitButton { get; set; }

        [AuthoriseFlag(AuthoriseFlag.flag_not_define)]
        [AuthoriseControlType(Web.ControlType.hidden)]
        public string HiddenReturnUrl { get; set; }

        public string ErrorMsg { get; set; }

        public bool IsZHCN { get; set; }
        public string Url { get; set; }

    }
}